Fix 'sched=sedf' boot.
authorKeir Fraser <keir@xensource.com>
Sat, 28 Apr 2007 08:37:32 +0000 (09:37 +0100)
committerKeir Fraser <keir@xensource.com>
Sat, 28 Apr 2007 08:37:32 +0000 (09:37 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/sched_credit.c

index 152da1248e83b23c53ad6d7cefaf0e6ddb34a784..192ed842133739b3840b77fc9030a143aa9ce3d3 100644 (file)
@@ -1355,6 +1355,10 @@ static __init int csched_start_tickers(void)
     struct csched_pcpu *spc;
     unsigned int cpu;
 
+    /* Is the credit scheduler initialised? */
+    if ( csched_priv.ncpus == 0 )
+        return 0;
+
     for_each_online_cpu ( cpu )
     {
         spc = CSCHED_PCPU(cpu);